Skip to content

fix: decode the features with the reponse charset - #477

Merged
alexanto merged 2 commits into
mainfrom
fix/charset-decoding
Nov 12, 2026
Merged

alexanto merged 2 commits into
mainfrom
fix/charset-decoding

Conversation

@alexanto

Copy link
Copy Markdown
Contributor

before the custom transport feature was added, decoding was the http library's resposibility. now, we don't know what lib is used, so it was moved out and i used utf-8 by default and used errors="replace" if we ever receive a payload with a different charset, than can be a problem because invalid features or constraints can get cached and passed to the engine
this problem was flagged by copilot in two PRs, i don't think it is sth to be worried about in real life, but better safe then sorry

@sighphyre sighphyre left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep seems sane

@github-project-automation github-project-automation Bot moved this from New to Approved PRs in Issues and PRs Nov 12, 2026
Base automatically changed from refactor/grouping to main November 12, 2026 11:16
@alexanto
alexanto force-pushed the fix/charset-decoding branch from d786a51 to 0095a37 Compare November 12, 2026 11:16
@alexanto
alexanto force-pushed the fix/charset-decoding branch from 0095a37 to 377107f Compare November 12, 2026 12:07
@alexanto
alexanto merged commit cf0a870 into main Nov 12, 2026
8 checks passed
@alexanto
alexanto deleted the fix/charset-decoding branch November 12, 2026 12:18
@github-project-automation github-project-automation Bot moved this from Approved PRs to Done in Issues and PRs Nov 12, 2026
alexanto added a commit that referenced this pull request Nov 12, 2026
* fix: decode the features with the reponse charset

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants